home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Displays.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  34.4 KB  |  1,118 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1993-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  18. __DISPLAYS__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  24.     include 'Components.a'
  25.     ENDIF
  26.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  27.     include 'Video.a'
  28.     ENDIF
  29.  
  30.     IF 0 THEN
  31.  
  32.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  33.     include 'AppleEvents.a'
  34.     ENDIF
  35.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  36.     include 'Events.a'
  37.     ENDIF
  38.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  39.     include 'Processes.a'
  40.     ENDIF
  41.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  42.     include 'Dialogs.a'
  43.     ENDIF
  44.     ENDIF
  45.  
  46.     IF &TYPE('FOR_GLUE_LIB') = 'UNDEFINED' THEN
  47.     FOR_GLUE_LIB: SET 0
  48.     ENDIF
  49.     IF &TYPE('FOR_68kGLUE_LIB') = 'UNDEFINED' THEN
  50.     FOR_68kGLUE_LIB: SET 0
  51.     ENDIF
  52.  
  53.                                                             ; AppleEvents Core Suite 
  54. kAESystemConfigNotice            EQU        'cnfg'                ; Core Suite types 
  55. kAEDisplayNotice                EQU        'dspl'
  56. kAEDisplaySummary                EQU        'dsum'
  57. keyDMConfigVersion                EQU        'dmcv'
  58. keyDMConfigFlags                EQU        'dmcf'
  59. keyDMConfigReserved                EQU        'dmcr'
  60. keyDisplayID                    EQU        'dmid'
  61. keyDisplayComponent                EQU        'dmdc'
  62. keyDisplayDevice                EQU        'dmdd'
  63. keyDisplayFlags                    EQU        'dmdf'
  64. keyDisplayMode                    EQU        'dmdm'
  65. keyDisplayModeReserved            EQU        'dmmr'
  66. keyDisplayReserved                EQU        'dmdr'
  67. keyDisplayMirroredId            EQU        'dmmi'
  68. keyDeviceFlags                    EQU        'dddf'
  69. keyDeviceDepthMode                EQU        'dddm'
  70. keyDeviceRect                    EQU        'dddr'
  71. keyPixMapRect                    EQU        'dpdr'
  72. keyPixMapHResolution            EQU        'dphr'
  73. keyPixMapVResolution            EQU        'dpvr'
  74. keyPixMapPixelType                EQU        'dppt'
  75. keyPixMapPixelSize                EQU        'dpps'
  76. keyPixMapCmpCount                EQU        'dpcc'
  77. keyPixMapCmpSize                EQU        'dpcs'
  78. keyPixMapAlignment                EQU        'dppa'
  79. keyPixMapResReserved            EQU        'dprr'
  80. keyPixMapReserved                EQU        'dppr'
  81. keyPixMapColorTableSeed            EQU        'dpct'
  82. keySummaryMenubar                EQU        'dsmb'
  83. keySummaryChanges                EQU        'dsch'
  84. keyDisplayOldConfig                EQU        'dold'
  85. keyDisplayNewConfig                EQU        'dnew'
  86.  
  87. dmOnlyActiveDisplays            EQU        1
  88. dmAllDisplays                    EQU        0
  89.  
  90.  
  91.                                                             ; DMSendDependentNotification notifyClass 
  92. kDependentNotifyClassShowCursor    EQU        'shcr'                ; When display mgr shows a hidden cursor during an unmirror 
  93. kDependentNotifyClassDriverOverride EQU    'ndrv'                ; When a driver is overridden 
  94. kDependentNotifyClassDisplayMgrOverride EQU 'dmgr'            ; When display manager is upgraded 
  95. kDependentNotifyClassProfileChanged EQU    'prof'                ; When DMSetProfileByAVID is called 
  96.  
  97.  
  98.                                                             ; Switch Flags 
  99. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  100. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  101. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  102. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  103. kNeverShowModeBit                EQU        5                    ; This mode should not be shown in the user interface. 
  104. ;     Summary Change Flags (sticky bits indicating an operation was performed)
  105. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  106. ;
  107.  
  108.  
  109. kBeginEndConfigureBit            EQU        0
  110. kMovedDisplayBit                EQU        1
  111. kSetMainDisplayBit                EQU        2
  112. kSetDisplayModeBit                EQU        3
  113. kAddDisplayBit                    EQU        4
  114. kRemoveDisplayBit                EQU        5
  115. kNewDisplayBit                    EQU        6
  116. kDisposeDisplayBit                EQU        7
  117. kEnabledDisplayBit                EQU        8
  118. kDisabledDisplayBit                EQU        9
  119. kMirrorDisplayBit                EQU        10
  120. kUnMirrorDisplayBit                EQU        11
  121.  
  122.  
  123.                                                             ; Notification Messages for extended call back routines 
  124. kDMNotifyInstalled                EQU        1                    ; At install time 
  125. kDMNotifyEvent                    EQU        2                    ; Post change time 
  126. kDMNotifyRemoved                EQU        3                    ; At remove time 
  127. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  128. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  129. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  130. kDMNotifySuspendConfigure        EQU        7                    ; Temporary end of configuration 
  131. kDMNotifyResumeConfigure        EQU        8                    ; Resume configuration 
  132. kDMNotifyRequestDisplayProbe    EQU        9                    ; Request smart displays re-probe (used in sleep and hot plugging) 
  133.                                                             ; Notification Flags 
  134. kExtendedNotificationProc        EQU        $00010000
  135.  
  136. ;  types for notifyType 
  137.  
  138. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  139. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  140. ;  DisplayID/DeviceID constants 
  141.  
  142. kDummyDeviceID                    EQU        $00FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  143. kInvalidDisplayID                EQU        $0000                ; This is the invalid ID
  144. kFirstDisplayID                    EQU        $0100
  145.  
  146.                                                             ; bits for panelListFlags 
  147. kAllowDuplicatesBit                EQU        0
  148.  
  149.                                                             ; bits for nameFlags 
  150. kSuppressNumberBit                EQU        0
  151. kSuppressNumberMask                EQU        1
  152. kForceNumberBit                    EQU        1
  153. kForceNumberMask                EQU        2
  154. kSuppressNameBit                EQU        2
  155. kSuppressNameMask                EQU        4
  156.  
  157.  
  158. ;  Constants for fidelity checks 
  159.  
  160. kNoFidelity                        EQU        0
  161. kMinimumFidelity                EQU        1
  162. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  163. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  164.  
  165. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  166. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  167. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  168. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  169. ;  portListFlags for DM_NewDevicePortList 
  170.  
  171.                                                             ; Should offline devices be put into the port list (such as dummy display) 
  172. kPLIncludeOfflineDevicesBit        EQU        0
  173.  
  174. ;  confirmFlags for DMConfirmConfiguration 
  175.  
  176. kForceConfirmBit                EQU        0                    ; Force a confirm dialog 
  177. kForceConfirmMask                EQU        $01
  178.  
  179. ;  Flags for displayModeFlags 
  180.  
  181. kDisplayModeListNotPreferredBit    EQU        0
  182. kDisplayModeListNotPreferredMask EQU    $01
  183.  
  184. ;  Flags for itemFlags 
  185.  
  186. kComponentListNotPreferredBit    EQU        0
  187. kComponentListNotPreferredMask    EQU        $01
  188.  
  189. kDisplayTimingInfoVersionZero    EQU        1
  190. kDisplayTimingInfoReservedCountVersionZero EQU 16
  191. kDisplayModeEntryVersionZero    EQU        0                    ; displayModeVersion - original version
  192. kDisplayModeEntryVersionOne        EQU        1                    ; displayModeVersion - added displayModeOverrideInfo
  193.  
  194.  
  195. kMakeAndModelReservedCount        EQU        4                    ; Number of reserved fields
  196. ; typedef unsigned long                 DMFidelityType
  197.  
  198.  
  199. ;   AVID is an ID for ports and devices the old DisplayID type
  200. ;      is carried on for compatibility
  201.  
  202.  
  203.  
  204. ; typedef unsigned long                 AVIDType
  205.  
  206. ; typedef AVIDType                         DisplayIDType
  207.  
  208. ; typedef void *                        DMListType
  209.  
  210. ; typedef unsigned long                 DMListIndexType
  211.  
  212. AVPowerStateRec            RECORD 0
  213. f                         ds        VDPowerStateRec
  214. sizeof                     EQU *                    ; size:   $10 (16)
  215.                         ENDR
  216.  
  217.  
  218. ; typedef struct VDPowerStateRec *        AVPowerStatePtr
  219.  
  220. DMDisplayTimingInfoRec    RECORD 0
  221. timingInfoVersion         ds.l    1                ; offset: $0 (0)
  222. timingInfoAttributes     ds.l    1                ; offset: $4 (4)        ;  Flags 
  223. timingInfoRelativeQuality  ds.l    1                ; offset: $8 (8)        ;  quality of the timing 
  224. timingInfoRelativeDefault  ds.l    1                ; offset: $C (12)        ;  relative default of the timing 
  225. timingInfoReserved         ds.l    16                ; offset: $10 (16)        ;  Reserved 
  226. sizeof                     EQU *                    ; size:   $50 (80)
  227.                         ENDR
  228. ; typedef struct DMDisplayTimingInfoRec * DMDisplayTimingInfoPtr
  229.  
  230.  
  231. DMComponentListEntryRec    RECORD 0
  232. itemID                     ds.l    1                ; offset: $0 (0)        ;  DisplayID Manager
  233. itemComponent             ds.l    1                ; offset: $4 (4)        ;  Component Manager
  234. itemDescription             ds        ComponentDescription ; offset: $8 (8)    ;  We can always construct this if we use something beyond the compontent mgr.
  235. itemClass                 ds.l    1                ; offset: $1C (28)        ;  Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  236. itemFidelity             ds.l    1                ; offset: $20 (32)        ;  How good is this item for the specified search?
  237. itemSubClass             ds.l    1                ; offset: $24 (36)        ;  Subclass of group to put this panel.  Can use to do sub-grouping (eg volume for volume panel and mute panel)
  238. itemSort                 ds        Point            ; offset: $28 (40)        ;  Set to 0 - future to sort the items in a sub group.
  239. itemFlags                 ds.l    1                ; offset: $2C (44)        ;  Set to 0 (future expansion)
  240. itemReserved             ds.l    1                ; offset: $30 (48)        ;  What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  241. itemFuture1                 ds.l    1                ; offset: $34 (52)        ;  Set to 0 (future expansion - probably an alternate code style)
  242. itemFuture2                 ds.l    1                ; offset: $38 (56)        ;  Set to 0 (future expansion - probably an alternate code style)
  243. itemFuture3                 ds.l    1                ; offset: $3C (60)        ;  Set to 0 (future expansion - probably an alternate code style)
  244. itemFuture4                 ds.l    1                ; offset: $40 (64)        ;  Set to 0 (future expansion - probably an alternate code style)
  245. sizeof                     EQU *                    ; size:   $44 (68)
  246.                         ENDR
  247. ; typedef struct DMComponentListEntryRec * DMComponentListEntryPtr
  248.  
  249. ;  ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  250. AVLocationRec            RECORD 0
  251. locationConstant         ds.l    1                ; offset: $0 (0)        ;  Set to 0 (future expansion - probably an alternate code style)
  252. sizeof                     EQU *                    ; size:   $4 (4)
  253.                         ENDR
  254. ; typedef struct AVLocationRec *        AVLocationPtr
  255.  
  256. DMDepthInfoRec            RECORD 0
  257. depthSwitchInfo             ds.l    1                ; offset: $0 (0)        ;  This is the switch mode to choose this timing/depth 
  258. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  VPBlock (including size, depth and format) 
  259. depthFlags                 ds.l    1                ; offset: $8 (8)        ;  VDVideoParametersInfoRec.csDepthFlags  
  260. depthReserved1             ds.l    1                ; offset: $C (12)        ;  Reserved 
  261. depthReserved2             ds.l    1                ; offset: $10 (16)        ;  Reserved 
  262. sizeof                     EQU *                    ; size:   $14 (20)
  263.                         ENDR
  264. ; typedef struct DMDepthInfoRec *        DMDepthInfoPtr
  265.  
  266. DMDepthInfoBlockRec        RECORD 0
  267. depthBlockCount             ds.l    1                ; offset: $0 (0)        ;  How many depths are there? 
  268. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  Array of DMDepthInfoRec 
  269. depthBlockFlags             ds.l    1                ; offset: $8 (8)        ;  Reserved 
  270. depthBlockReserved1         ds.l    1                ; offset: $C (12)        ;  Reserved 
  271. depthBlockReserved2         ds.l    1                ; offset: $10 (16)        ;  Reserved 
  272. sizeof                     EQU *                    ; size:   $14 (20)
  273.                         ENDR
  274. ; typedef struct DMDepthInfoBlockRec *    DMDepthInfoBlockPtr
  275.  
  276. DMDisplayModeListEntryRec RECORD 0
  277. displayModeFlags         ds.l    1                ; offset: $0 (0)
  278. displayModeSwitchInfo     ds.l    1                ; offset: $4 (4)
  279. displayModeResolutionInfo  ds.l    1                ; offset: $8 (8)
  280. displayModeTimingInfo     ds.l    1                ; offset: $C (12)
  281. displayModeDepthBlockInfo  ds.l    1                ; offset: $10 (16)        ;  Information about all the depths
  282. displayModeVersion         ds.l    1                ; offset: $14 (20)        ;  What version is this record (now kDisplayModeEntryVersionOne)
  283. displayModeName             ds.l    1                ; offset: $18 (24)        ;  Name of the timing mode
  284. displayModeDisplayInfo     ds.l    1                ; offset: $1C (28)        ;  Information from the display.
  285. sizeof                     EQU *                    ; size:   $20 (32)
  286.                         ENDR
  287. ; typedef struct DMDisplayModeListEntryRec * DMDisplayModeListEntryPtr
  288.  
  289.  
  290. DependentNotifyRec        RECORD 0
  291. notifyType                 ds.l    1                ; offset: $0 (0)        ;  What type was the engine that made the change (may be zero)
  292. notifyClass                 ds.l    1                ; offset: $4 (4)        ;  What class was the change (eg geometry, color etc)
  293. notifyPortID             ds.l    1                ; offset: $8 (8)        ;  Which device was touched (kInvalidDisplayID -> all or none)
  294. notifyComponent             ds.l    1                ; offset: $C (12)        ;  What engine did it (may be 0)?
  295. notifyVersion             ds.l    1                ; offset: $10 (16)        ;  Set to 0 (future expansion)
  296. notifyFlags                 ds.l    1                ; offset: $14 (20)        ;  Set to 0 (future expansion)
  297. notifyReserved             ds.l    1                ; offset: $18 (24)        ;  Set to 0 (future expansion)
  298. notifyFuture             ds.l    1                ; offset: $1C (28)        ;  Set to 0 (future expansion)
  299. sizeof                     EQU *                    ; size:   $20 (32)
  300.                         ENDR
  301. ; typedef struct DependentNotifyRec *    DependentNotifyPtr
  302.  
  303.  
  304. DMMakeAndModelRec        RECORD 0
  305. manufacturer             ds.l    1                ; offset: $0 (0)
  306. model                     ds.l    1                ; offset: $4 (4)
  307. serialNumber             ds.l    1                ; offset: $8 (8)
  308. manufactureDate             ds.l    1                ; offset: $C (12)
  309. makeReserved             ds.l    4                ; offset: $10 (16)
  310. sizeof                     EQU *                    ; size:   $20 (32)
  311.                         ENDR
  312. ; typedef struct DMMakeAndModelRec *    DMMakeAndModelPtr
  313.  
  314.  
  315. ;  Exports to support Interfaces library containing unused calls 
  316.     IF ¬ FOR_GLUE_LIB THEN
  317.     ENDIF
  318.  
  319. ;  Trap interfaces 
  320.  
  321.     IF ¬ FOR_GLUE_LIB THEN
  322. ;
  323. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  324. ;
  325.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  326.         Macro
  327.         _DMGetFirstScreenDevice
  328.             moveq               #0,D0
  329.             dc.w                $ABEB
  330.         EndM
  331.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  332.         IMPORT_CFM_FUNCTION DMGetFirstScreenDevice
  333.     ENDIF
  334.  
  335. ;
  336. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  337. ;
  338.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  339.         Macro
  340.         _DMGetNextScreenDevice
  341.             moveq               #1,D0
  342.             dc.w                $ABEB
  343.         EndM
  344.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  345.         IMPORT_CFM_FUNCTION DMGetNextScreenDevice
  346.     ENDIF
  347.  
  348. ;
  349. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  350. ;
  351.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  352.         Macro
  353.         _DMDrawDesktopRect
  354.             moveq               #2,D0
  355.             dc.w                $ABEB
  356.         EndM
  357.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  358.         IMPORT_CFM_FUNCTION DMDrawDesktopRect
  359.     ENDIF
  360.  
  361. ;
  362. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  363. ;
  364.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  365.         Macro
  366.         _DMDrawDesktopRegion
  367.             moveq               #3,D0
  368.             dc.w                $ABEB
  369.         EndM
  370.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  371.         IMPORT_CFM_FUNCTION DMDrawDesktopRegion
  372.     ENDIF
  373.  
  374.  
  375.  
  376. ;
  377. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  378. ;
  379.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  380.         Macro
  381.         _DMBeginConfigureDisplays
  382.             move.w              #$0206,D0
  383.             dc.w                $ABEB
  384.         EndM
  385.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  386.         IMPORT_CFM_FUNCTION DMBeginConfigureDisplays
  387.     ENDIF
  388.  
  389. ;
  390. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  391. ;
  392.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  393.         Macro
  394.         _DMEndConfigureDisplays
  395.             move.w              #$0207,D0
  396.             dc.w                $ABEB
  397.         EndM
  398.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  399.         IMPORT_CFM_FUNCTION DMEndConfigureDisplays
  400.     ENDIF
  401.  
  402. ;
  403. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  404. ;
  405.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  406.         Macro
  407.         _DMAddDisplay
  408.             move.w              #$0D08,D0
  409.             dc.w                $ABEB
  410.         EndM
  411.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  412.         IMPORT_CFM_FUNCTION DMAddDisplay
  413.     ENDIF
  414.  
  415. ;
  416. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  417. ;
  418.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  419.         Macro
  420.         _DMMoveDisplay
  421.             move.w              #$0609,D0
  422.             dc.w                $ABEB
  423.         EndM
  424.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  425.         IMPORT_CFM_FUNCTION DMMoveDisplay
  426.     ENDIF
  427.  
  428. ;
  429. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  430. ;
  431.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  432.         Macro
  433.         _DMDisableDisplay
  434.             move.w              #$040A,D0
  435.             dc.w                $ABEB
  436.         EndM
  437.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  438.         IMPORT_CFM_FUNCTION DMDisableDisplay
  439.     ENDIF
  440.  
  441. ;
  442. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  443. ;
  444.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  445.         Macro
  446.         _DMEnableDisplay
  447.             move.w              #$040B,D0
  448.             dc.w                $ABEB
  449.         EndM
  450.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  451.         IMPORT_CFM_FUNCTION DMEnableDisplay
  452.     ENDIF
  453.  
  454. ;
  455. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  456. ;
  457.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  458.         Macro
  459.         _DMRemoveDisplay
  460.             move.w              #$040C,D0
  461.             dc.w                $ABEB
  462.         EndM
  463.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  464.         IMPORT_CFM_FUNCTION DMRemoveDisplay
  465.     ENDIF
  466.  
  467.  
  468.  
  469.  
  470. ;
  471. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  472. ;
  473.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  474.         Macro
  475.         _DMSetMainDisplay
  476.             move.w              #$0410,D0
  477.             dc.w                $ABEB
  478.         EndM
  479.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  480.         IMPORT_CFM_FUNCTION DMSetMainDisplay
  481.     ENDIF
  482.  
  483. ;
  484. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  485. ;
  486.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  487.         Macro
  488.         _DMSetDisplayMode
  489.             move.w              #$0A11,D0
  490.             dc.w                $ABEB
  491.         EndM
  492.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  493.         IMPORT_CFM_FUNCTION DMSetDisplayMode
  494.     ENDIF
  495.  
  496. ;
  497. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  498. ;
  499.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  500.         Macro
  501.         _DMCheckDisplayMode
  502.             move.w              #$0C12,D0
  503.             dc.w                $ABEB
  504.         EndM
  505.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  506.         IMPORT_CFM_FUNCTION DMCheckDisplayMode
  507.     ENDIF
  508.  
  509. ;
  510. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  511. ;
  512.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  513.         Macro
  514.         _DMGetDeskRegion
  515.             move.w              #$0213,D0
  516.             dc.w                $ABEB
  517.         EndM
  518.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  519.         IMPORT_CFM_FUNCTION DMGetDeskRegion
  520.     ENDIF
  521.  
  522. ;
  523. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  524. ;
  525.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  526.         Macro
  527.         _DMRegisterNotifyProc
  528.             move.w              #$0414,D0
  529.             dc.w                $ABEB
  530.         EndM
  531.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  532.         IMPORT_CFM_FUNCTION DMRegisterNotifyProc
  533.     ENDIF
  534.  
  535. ;
  536. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  537. ;
  538.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  539.         Macro
  540.         _DMRemoveNotifyProc
  541.             move.w              #$0415,D0
  542.             dc.w                $ABEB
  543.         EndM
  544.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  545.         IMPORT_CFM_FUNCTION DMRemoveNotifyProc
  546.     ENDIF
  547.  
  548.  
  549. ;
  550. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  551. ;
  552.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  553.         Macro
  554.         _DMQDIsMirroringCapable
  555.             move.w              #$0216,D0
  556.             dc.w                $ABEB
  557.         EndM
  558.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  559.         IMPORT_CFM_FUNCTION DMQDIsMirroringCapable
  560.     ENDIF
  561.  
  562. ;
  563. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  564. ;
  565.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  566.         Macro
  567.         _DMCanMirrorNow
  568.             move.w              #$0217,D0
  569.             dc.w                $ABEB
  570.         EndM
  571.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  572.         IMPORT_CFM_FUNCTION DMCanMirrorNow
  573.     ENDIF
  574.  
  575. ;
  576. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  577. ;
  578.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  579.         Macro
  580.         _DMIsMirroringOn
  581.             move.w              #$0218,D0
  582.             dc.w                $ABEB
  583.         EndM
  584.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  585.         IMPORT_CFM_FUNCTION DMIsMirroringOn
  586.     ENDIF
  587.  
  588. ;
  589. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  590. ;
  591.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  592.         Macro
  593.         _DMMirrorDevices
  594.             move.w              #$0619,D0
  595.             dc.w                $ABEB
  596.         EndM
  597.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  598.         IMPORT_CFM_FUNCTION DMMirrorDevices
  599.     ENDIF
  600.  
  601. ;
  602. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  603. ;
  604.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  605.         Macro
  606.         _DMUnmirrorDevice
  607.             move.w              #$041A,D0
  608.             dc.w                $ABEB
  609.         EndM
  610.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  611.         IMPORT_CFM_FUNCTION DMUnmirrorDevice
  612.     ENDIF
  613.  
  614. ;
  615. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  616. ;
  617.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  618.         Macro
  619.         _DMGetNextMirroredDevice
  620.             move.w              #$041B,D0
  621.             dc.w                $ABEB
  622.         EndM
  623.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  624.         IMPORT_CFM_FUNCTION DMGetNextMirroredDevice
  625.     ENDIF
  626.  
  627. ;
  628. ; pascal OSErr DMBlockMirroring(void )
  629. ;
  630.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  631.         Macro
  632.         _DMBlockMirroring
  633.             moveq               #28,D0
  634.             dc.w                $ABEB
  635.         EndM
  636.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  637.         IMPORT_CFM_FUNCTION DMBlockMirroring
  638.     ENDIF
  639.  
  640. ;
  641. ; pascal OSErr DMUnblockMirroring(void )
  642. ;
  643.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  644.         Macro
  645.         _DMUnblockMirroring
  646.             moveq               #29,D0
  647.             dc.w                $ABEB
  648.         EndM
  649.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  650.         IMPORT_CFM_FUNCTION DMUnblockMirroring
  651.     ENDIF
  652.  
  653. ;
  654. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  655. ;
  656.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  657.         Macro
  658.         _DMGetDisplayMgrA5World
  659.             move.w              #$021E,D0
  660.             dc.w                $ABEB
  661.         EndM
  662.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  663.         IMPORT_CFM_FUNCTION DMGetDisplayMgrA5World
  664.     ENDIF
  665.  
  666. ;
  667. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  668. ;
  669.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  670.         Macro
  671.         _DMGetDisplayIDByGDevice
  672.             move.w              #$051F,D0
  673.             dc.w                $ABEB
  674.         EndM
  675.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  676.         IMPORT_CFM_FUNCTION DMGetDisplayIDByGDevice
  677.     ENDIF
  678.  
  679. ;
  680. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  681. ;
  682.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  683.         Macro
  684.         _DMGetGDeviceByDisplayID
  685.             move.w              #$0520,D0
  686.             dc.w                $ABEB
  687.         EndM
  688.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  689.         IMPORT_CFM_FUNCTION DMGetGDeviceByDisplayID
  690.     ENDIF
  691.  
  692. ;
  693. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  694. ;
  695.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  696.         Macro
  697.         _DMSetDisplayComponent
  698.             move.w              #$0421,D0
  699.             dc.w                $ABEB
  700.         EndM
  701.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  702.         IMPORT_CFM_FUNCTION DMSetDisplayComponent
  703.     ENDIF
  704.  
  705. ;
  706. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  707. ;
  708.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  709.         Macro
  710.         _DMGetDisplayComponent
  711.             move.w              #$0422,D0
  712.             dc.w                $ABEB
  713.         EndM
  714.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  715.         IMPORT_CFM_FUNCTION DMGetDisplayComponent
  716.     ENDIF
  717.  
  718. ;
  719. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  720. ;
  721.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  722.         Macro
  723.         _DMNewDisplay
  724.             move.w              #$0D23,D0
  725.             dc.w                $ABEB
  726.         EndM
  727.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  728.         IMPORT_CFM_FUNCTION DMNewDisplay
  729.     ENDIF
  730.  
  731. ;
  732. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  733. ;
  734.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  735.         Macro
  736.         _DMDisposeDisplay
  737.             move.w              #$0424,D0
  738.             dc.w                $ABEB
  739.         EndM
  740.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  741.         IMPORT_CFM_FUNCTION DMDisposeDisplay
  742.     ENDIF
  743.  
  744. ;
  745. ; pascal OSErr DMResolveDisplayComponents(void )
  746. ;
  747.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  748.         Macro
  749.         _DMResolveDisplayComponents
  750.             moveq               #37,D0
  751.             dc.w                $ABEB
  752.         EndM
  753.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  754.         IMPORT_CFM_FUNCTION DMResolveDisplayComponents
  755.     ENDIF
  756.  
  757.     ENDIF
  758.     IF ¬ FOR_68kGLUE_LIB THEN
  759. ;
  760. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  761. ;
  762.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  763.         Macro
  764.         _DMRegisterExtendedNotifyProc
  765.             move.w              #$07EF,D0
  766.             dc.w                $ABEB
  767.         EndM
  768.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  769.         IMPORT_CFM_FUNCTION DMRegisterExtendedNotifyProc
  770.     ENDIF
  771.  
  772. ;
  773. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  774. ;
  775.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  776.         Macro
  777.         _DMRemoveExtendedNotifyProc
  778.             move.w              #$0726,D0
  779.             dc.w                $ABEB
  780.         EndM
  781.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  782.         IMPORT_CFM_FUNCTION DMRemoveExtendedNotifyProc
  783.     ENDIF
  784.  
  785.     ENDIF
  786. ;
  787. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  788. ;
  789.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  790.         Macro
  791.         _DMNewAVPanelList
  792.             move.w              #$0C27,D0
  793.             dc.w                $ABEB
  794.         EndM
  795.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  796.         IMPORT_CFM_FUNCTION DMNewAVPanelList
  797.     ENDIF
  798.  
  799. ;
  800. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  801. ;
  802.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  803.         Macro
  804.         _DMNewAVEngineList
  805.             move.w              #$0C28,D0
  806.             dc.w                $ABEB
  807.         EndM
  808.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  809.         IMPORT_CFM_FUNCTION DMNewAVEngineList
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  814. ;
  815.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  816.         Macro
  817.         _DMNewAVDeviceList
  818.             move.w              #$0A29,D0
  819.             dc.w                $ABEB
  820.         EndM
  821.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  822.         IMPORT_CFM_FUNCTION DMNewAVDeviceList
  823.     ENDIF
  824.  
  825. ;
  826. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  827. ;
  828.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  829.         Macro
  830.         _DMNewAVPortListByPortType
  831.             move.w              #$0A2A,D0
  832.             dc.w                $ABEB
  833.         EndM
  834.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  835.         IMPORT_CFM_FUNCTION DMNewAVPortListByPortType
  836.     ENDIF
  837.  
  838. ;
  839. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  840. ;
  841.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  842.         Macro
  843.         _DMGetIndexedComponentFromList
  844.             move.w              #$0A2B,D0
  845.             dc.w                $ABEB
  846.         EndM
  847.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  848.         IMPORT_CFM_FUNCTION DMGetIndexedComponentFromList
  849.     ENDIF
  850.  
  851.     IF ¬ FOR_68kGLUE_LIB THEN
  852. ;
  853. ; pascal OSErr DMDisposeList(DMListType panelList)
  854. ;
  855.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  856.         Macro
  857.         _DMDisposeList
  858.             move.w              #$022C,D0
  859.             dc.w                $ABEB
  860.         EndM
  861.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  862.         IMPORT_CFM_FUNCTION DMDisposeList
  863.     ENDIF
  864.  
  865.     ENDIF
  866. ;
  867. ; pascal OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 name)
  868. ;
  869.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  870.         Macro
  871.         _DMGetNameByAVID
  872.             move.w              #$062D,D0
  873.             dc.w                $ABEB
  874.         EndM
  875.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  876.         IMPORT_CFM_FUNCTION DMGetNameByAVID
  877.     ENDIF
  878.  
  879. ;
  880. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  881. ;
  882.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  883.         Macro
  884.         _DMNewAVIDByPortComponent
  885.             move.w              #$082E,D0
  886.             dc.w                $ABEB
  887.         EndM
  888.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  889.         IMPORT_CFM_FUNCTION DMNewAVIDByPortComponent
  890.     ENDIF
  891.  
  892. ;
  893. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  894. ;
  895.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  896.         Macro
  897.         _DMGetPortComponentByAVID
  898.             move.w              #$082F,D0
  899.             dc.w                $ABEB
  900.         EndM
  901.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  902.         IMPORT_CFM_FUNCTION DMGetPortComponentByAVID
  903.     ENDIF
  904.  
  905.     IF ¬ FOR_68kGLUE_LIB THEN
  906. ;
  907. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  908. ;
  909.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  910.         Macro
  911.         _DMSendDependentNotification
  912.             move.w              #$0830,D0
  913.             dc.w                $ABEB
  914.         EndM
  915.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  916.         IMPORT_CFM_FUNCTION DMSendDependentNotification
  917.     ENDIF
  918.  
  919.     ENDIF
  920. ;
  921. ; pascal OSErr DMDisposeAVComponent(Component theAVComponent)
  922. ;
  923.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  924.         Macro
  925.         _DMDisposeAVComponent
  926.             move.w              #$0231,D0
  927.             dc.w                $ABEB
  928.         EndM
  929.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  930.         IMPORT_CFM_FUNCTION DMDisposeAVComponent
  931.     ENDIF
  932.  
  933. ;
  934. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  935. ;
  936.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  937.         Macro
  938.         _DMSaveScreenPrefs
  939.             move.w              #$0632,D0
  940.             dc.w                $ABEB
  941.         EndM
  942.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  943.         IMPORT_CFM_FUNCTION DMSaveScreenPrefs
  944.     ENDIF
  945.  
  946. ;
  947. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  948. ;
  949.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  950.         Macro
  951.         _DMNewAVIDByDeviceComponent
  952.             move.w              #$0833,D0
  953.             dc.w                $ABEB
  954.         EndM
  955.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  956.         IMPORT_CFM_FUNCTION DMNewAVIDByDeviceComponent
  957.     ENDIF
  958.  
  959. ;
  960. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  961. ;
  962.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  963.         Macro
  964.         _DMNewAVPortListByDeviceAVID
  965.             move.w              #$0C34,D0
  966.             dc.w                $ABEB
  967.         EndM
  968.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  969.         IMPORT_CFM_FUNCTION DMNewAVPortListByDeviceAVID
  970.     ENDIF
  971.  
  972. ;
  973. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  974. ;
  975.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  976.         Macro
  977.         _DMGetDeviceComponentByAVID
  978.             move.w              #$0835,D0
  979.             dc.w                $ABEB
  980.         EndM
  981.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  982.         IMPORT_CFM_FUNCTION DMGetDeviceComponentByAVID
  983.     ENDIF
  984.  
  985. ;
  986. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  987. ;
  988.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  989.         Macro
  990.         _DMNewDisplayModeList
  991.             move.w              #$0A36,D0
  992.             dc.w                $ABEB
  993.         EndM
  994.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  995.         IMPORT_CFM_FUNCTION DMNewDisplayModeList
  996.     ENDIF
  997.  
  998. ;
  999. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  1000. ;
  1001.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1002.         Macro
  1003.         _DMGetIndexedDisplayModeFromList
  1004.             move.w              #$0A37,D0
  1005.             dc.w                $ABEB
  1006.         EndM
  1007.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1008.         IMPORT_CFM_FUNCTION DMGetIndexedDisplayModeFromList
  1009.     ENDIF
  1010.  
  1011. ;
  1012. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  1013. ;
  1014.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1015.         Macro
  1016.         _DMGetGraphicInfoByAVID
  1017.             move.w              #$0838,D0
  1018.             dc.w                $ABEB
  1019.         EndM
  1020.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1021.         IMPORT_CFM_FUNCTION DMGetGraphicInfoByAVID
  1022.     ENDIF
  1023.  
  1024. ;
  1025. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  1026. ;
  1027.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1028.         Macro
  1029.         _DMGetAVPowerState
  1030.             move.w              #$0839,D0
  1031.             dc.w                $ABEB
  1032.         EndM
  1033.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1034.         IMPORT_CFM_FUNCTION DMGetAVPowerState
  1035.     ENDIF
  1036.  
  1037. ;
  1038. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
  1039. ;
  1040.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1041.         Macro
  1042.         _DMSetAVPowerState
  1043.             move.w              #$083A,D0
  1044.             dc.w                $ABEB
  1045.         EndM
  1046.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1047.         IMPORT_CFM_FUNCTION DMSetAVPowerState
  1048.     ENDIF
  1049.  
  1050. ;
  1051. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  1052. ;
  1053.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1054.         Macro
  1055.         _DMGetDeviceAVIDByPortAVID
  1056.             move.w              #$043B,D0
  1057.             dc.w                $ABEB
  1058.         EndM
  1059.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1060.         IMPORT_CFM_FUNCTION DMGetDeviceAVIDByPortAVID
  1061.     ENDIF
  1062.  
  1063. ;
  1064. ; pascal OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
  1065. ;
  1066.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1067.         Macro
  1068.         _DMGetEnableByAVID
  1069.             move.w              #$063C,D0
  1070.             dc.w                $ABEB
  1071.         EndM
  1072.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1073.         IMPORT_CFM_FUNCTION DMGetEnableByAVID
  1074.     ENDIF
  1075.  
  1076. ;
  1077. ; pascal OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
  1078. ;
  1079.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1080.         Macro
  1081.         _DMSetEnableByAVID
  1082.             move.w              #$053D,D0
  1083.             dc.w                $ABEB
  1084.         EndM
  1085.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1086.         IMPORT_CFM_FUNCTION DMSetEnableByAVID
  1087.     ENDIF
  1088.  
  1089. ;
  1090. ; pascal OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
  1091. ;
  1092.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1093.         Macro
  1094.         _DMGetDisplayMode
  1095.             move.w              #$043E,D0
  1096.             dc.w                $ABEB
  1097.         EndM
  1098.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1099.         IMPORT_CFM_FUNCTION DMGetDisplayMode
  1100.     ENDIF
  1101.  
  1102. ;
  1103. ; pascal OSErr DMConfirmConfiguration(ModalFilterUPP filterProc, UInt32 confirmFlags, UInt32 reserved, Handle displayState)
  1104. ;
  1105.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1106.         Macro
  1107.         _DMConfirmConfiguration
  1108.             move.w              #$083F,D0
  1109.             dc.w                $ABEB
  1110.         EndM
  1111.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1112.         IMPORT_CFM_FUNCTION DMConfirmConfiguration
  1113.     ENDIF
  1114.  
  1115.  
  1116.     ENDIF ; __DISPLAYS__ 
  1117.  
  1118.